const app = getApp();
const UserApi = require('../../../api/user.js');

Page({
  data: {
    fsUrl: app.globalData.fsUrl,
    servicesList: []
  },
  onLoad(options) {

  },

  onReady() {

  },

  onShow() {
    this.getFrontMemberServiceList()
  },

  onHide() {

  },
  // 查询会员服务
  getFrontMemberServiceList(){
    UserApi.getFrontMemberServiceList().then(res=>{
      if (res.retCode == "000000" && res.errCode == "000000") {
        this.setData({
          servicesList: res.data
        })
      }
    })
  },

  onUnload() {

  },

  onPullDownRefresh() {

  },

  onReachBottom() {

  },

  onShareAppMessage() {

  }
})